/*package com.baiyi.cloud.platform.service.jobhandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.github.pagehelper.PageHelper;
import com.baiyi.cloud.platform.model.PageModel;
import com.baiyi.cloud.platform.uc.entity.UcUser;
import com.baiyi.cloud.platform.uc.mapper.UcUserMapper;
import com.baiyi.cloud.platform.util.DBoptUtil;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;

@JobHandler(value="dataIncrementJobHandler")
@Component
public class DataIncrementJobHandler extends IJobHandler {

	@Autowired
    private UcUserMapper ucUserMapper;
	
	@Override
	public ReturnT<String> execute(String param) throws Exception {;
	
	
		PageModel<UcUser> page = new PageModel<>();
		page.setStart(0);
		page.setLength(1);
		PageModel<UcUser> pageList = findByPage(null, page);
		
		int total = (pageList.getRecordsTotal() + 1);
		
		DBoptUtil.synsData(10, total);
		
		return null;
	}

	private PageModel<UcUser> findByPage(UcUser ucUser, PageModel<UcUser> page) {
		
		PageHelper.offsetPage(page.getStart(), page.getLength());
		page.initData(ucUserMapper.findByPage(ucUser));
		
		return page;
	}
}
*/